<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>商铺管理</title>
    <hdjs/>
    <bootstrap/>
</head>

<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td>商铺id</td>
            <td>商铺名称</td>
            <td>所属分类</td>
            <td>所在城市</td>
            <td>详细查看</td>
            <td>菜单</td>
            <td width="200">操作</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$data" value="$v">
                <tr>
                    <td>{$v.sid}</td>
                    <td>{$v.name}</td>
                    <td>{$v.cname}</td>
                    <td>{$v.cityname}</td>
                    <td>
                        <a href="{|U:'Store/show_all',array('sid'=>$v['sid'])}" class="btn btn-primary btn-xs">详细</a>
                    </td>
                    <td>
                        <a href="{|U:'Store/type',array('sid'=>$v['sid'])}" class="btn btn-info btn-xs">菜单</a>
                    </td>
                    <td width="200">
                        <a href="{|U:'Store/edit',array('sid'=>$v['sid'])}" class="btn btn-success btn-xs">编辑</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs"onclick="if(confirm('确定删除吗？')) location.href='{|U:'Store/dele',array('sid'=>$v['sid'])}'">删除</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
</div>

</body>
</html>


